package com.yzyz.utils.json.processor;

import com.yzyz.utils.Star;

import net.sf.json.JsonConfig;
import net.sf.json.processors.JsonValueProcessor;

/**
 * 酒店档次转换
 * @author david.sun
 * @date 2010-7-17
 */
public class StarProcessor implements JsonValueProcessor {

	@Override
	public Object processArrayValue(Object object, JsonConfig arg1) {
		
		return null;
	}

	@Override
	public Object processObjectValue(String key, Object value, JsonConfig arg2) {
		Star star = (Star)value;
		return star.getType();
	}

}
